package com.ruoyi.site.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 收货地址对象 site
 *
 * @author ruoyi
 * @date 2024-01-16
 */
public class Site implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 用户id */
    @Excel(name = "用户id")
    private String appuserId;

    /** 收货人 */
    @Excel(name = "收货人")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String address;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detail;

    /** 默认地址0非默认1默认    默认0 */
    @Excel(name = "默认地址0非默认1默认    默认0")
    private Integer approve;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setAppuserId(String appuserId)
    {
        this.appuserId = appuserId;
    }

    public String getAppuserId()
    {
        return appuserId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setDetail(String detail)
    {
        this.detail = detail;
    }

    public String getDetail()
    {
        return detail;
    }
    public void setApprove(Integer approve)
    {
        this.approve = approve;
    }

    public Integer getApprove()
    {
        return approve;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appuserId", getAppuserId())
            .append("name", getName())
            .append("mobile", getMobile())
            .append("address", getAddress())
            .append("detail", getDetail())
            .append("approve", getApprove())
            .append("createTime", getCreateTime())
            .toString();
    }
}
